﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace MoskieDotNet.Models
{
    public class Post
    {
        public int Id { get; set; }
        public string Title { get; set; }               

        [AllowHtml]
        public string Text { get; set; }

        [Display(Name = "Posted Date")]
        [Editable(false, AllowInitialValue = true)]
        public DateTime PostedDate { get; set; }

        [Display(Name = "Edited Date")]
        [Editable(false, AllowInitialValue = true)]
        public DateTime EditedDate { get; set; }
    }
}